package com.zhongchaowuye.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.github.pagehelper.PageHelper;
import com.zhongchaowuye.dao.A_ZhL_PZhDao;
import com.zhongchaowuye.pojo.A_ZhL_PZh;
import com.zhongchaowuye.service.A_ZhL_PZhService;

@Transactional
@Service("a_ZhL_PZhService")
public class A_ZhL_PZhServiceImpl implements A_ZhL_PZhService
{
	@Resource
	A_ZhL_PZhDao a_ZhL_PZhDao;
	
	@Override
	public int insertA_ZhL_PZh(A_ZhL_PZh a_ZhL_PZh) {
		// TODO Auto-generated method stub
		return a_ZhL_PZhDao.insertA_ZhL_PZh(a_ZhL_PZh);
	}

	@Override
	public int updateA_ZhL_PZh(A_ZhL_PZh a_ZhL_PZh) {
		// TODO Auto-generated method stub
		return a_ZhL_PZhDao.updateA_ZhL_PZh(a_ZhL_PZh);
	}

	@Override
	public int delA_ZhL_PZh(A_ZhL_PZh a_ZhL_PZh) {
		// TODO Auto-generated method stub
		return a_ZhL_PZhDao.delA_ZhL_PZh(a_ZhL_PZh);
	}
	
	@Override
	public A_ZhL_PZh getA_ZhL_PZh(A_ZhL_PZh a_ZhL_PZh) {
		// TODO Auto-generated method stub
		return a_ZhL_PZhDao.getA_ZhL_PZh(a_ZhL_PZh);
	}
	
	@Override
	public List<Map<String, Object>> getA_ZhL_PZhList(A_ZhL_PZh a_ZhL_PZh) {
		// TODO Auto-generated method stub
		PageHelper.startPage(a_ZhL_PZh.getPageIndex(),a_ZhL_PZh.getPageSize(),true);
		return a_ZhL_PZhDao.getA_ZhL_PZhList(a_ZhL_PZh);
	}
}
